package com.project.blog.repository.dao;

import com.project.blog.entity.Article;
import com.project.blog.entity.ArticleQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleDao {

    List<Article> list(@Param("query") ArticleQuery query,
                       @Param("start")long start,
                       @Param("end") long end
    );


    List<Article> getArticlesByTag(@Param("query") ArticleQuery query,
                       @Param("start")long start,
                       @Param("end") long end
    );
}
